<script type="text/javascript">
	function helpwarn(){
		$("#attribue").val($("#warnmsg").val());
	}
</script>
<div class="artCon">
	<div class="middleArt">
	<form class="form-horizontal" id="mainForm" action="/${orgi}/dm/cube/${cubeid}/measureedito.html" data-toggle="ajax-form" data-target="#measure_div" method="post">
	<input type="hidden" value="${measure.id!}" name="id">
		<div class="artMain">
			<div class="mainCenter"> 
				<table class="data_table_1" style="margin-left: 10px;">
					<tr>
						<th>名称：</th>
						<td>
						<input type="text" value="${measure.name!''}"  maxlength="255" class="span2 required" name="name">
						 <span class="help-inline"></span><i class="inputip">*</i>
						</td>
						<th>代码：</th>
						<td>
						${measure.code!''}
						<input type="hidden" value="${measure.code!''}" class="span2" name="code">
						</td>
					</tr>
					<tr>
						<th>聚合方式：</th>
						<td>
						<select required="" name="aggregator" class="span2">
							<option value="">请选择</option>
							<option <#if measure.aggregator?? && measure.aggregator=='string'>selected="selected"</#if> value="string">字符（String，无聚合）</option>
							<option <#if measure.aggregator?? && measure.aggregator=='sum'>selected="selected"</#if> value="sum">求和（Sum）</option>
							<option <#if measure.aggregator?? && measure.aggregator=='count'>selected="selected"</#if> value="count">计数（Count）</option>
							<option <#if measure.aggregator?? && measure.aggregator=='min'>selected="selected"</#if> value="min">最小（Min）</option>
							<option <#if measure.aggregator?? && measure.aggregator=='max'>selected="selected"</#if> value="max">最大（Max）</option>
							<option <#if measure.aggregator?? && measure.aggregator=='avg'>selected="selected"</#if> value="avg">平均值（Avg）</option>
							<option <#if measure.aggregator?? && measure.aggregator=='distinct-count'>selected="selected"</#if> value="distinct-count">唯一计数（Distinct Count）</option>
						</select>
						</td>
						<th>格式化：</th>
						<td>
						<input type="text" value="${measure.formatstring!''}" class="span2" name="formatstring">
						</td>
					</tr>
					<tr>
						<th>数值计算：</th>
						<td>
						<label style="margin-left:2px;" class="radio inline"><input type="radio" <#if measure.calculatedmember?? && measure.calculatedmember>checked="checked"</#if> value="1" name="calculatedmember" id="calm">是</label>
						<label class="radio inline"><input type="radio" <#if measure.calculatedmember?? && !measure.calculatedmember>checked="checked"</#if> value="0" name="calculatedmember">否</label>
						</td>
						<th>排序位置：</th>
						<td>
						<input type="text" value="${measure.sortindex!''}" class="span2" name="sortindex">
						</td>
					</tr>
				<!-- 	<tr>
						<th>参数：</th>
						<td colspan="3">
						<textarea style="width:437px; height:50px; resize:none;" rows="1" class="span3" id="parameters" name="parameters">${measure.parameters!''}</textarea>
						</td>

					</tr> -->
					
					
					<tr>
						<th>属性：<a href="javascript:void(0)" onclick="helpwarn()">提示</a></th>
						<td colspan="3">
						<textarea style="width:437px; height:50px; resize:none;margin-top:4px;" rows="4" class="span3" id="attribue" name="attribue">${measure.attribue!''}</textarea>
<textarea id="warnmsg" style="display: none">
<KeyExpression>
	<SQL>
		
	</SQL>
</KeyExpression></textarea>
						</td>
						
					</tr>
					<tr>
						<th>描述：</th>
						<td colspan="3">
						<textarea style="width:437px; height:50px; resize:none;margin-top:4px;" rows="1" class="span3" id="description" name="description">${measure.description!''}</textarea>
						</td>

					</tr>
				</table>
				
			</div>
		</div>
		<div class="bottomBg">
			<div class="btnWrap">
				<input type="submit" class="subButtonStyle" value="确认"/>
				<input type="button" onclick="closeR3ArtDialog()" class="cancelButtonStyle" value="取消"/>
			</div>
		</div>
	</form>
	</div>
</div>
